package vip.xiaonuo.pm.modular.enterprise.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import vip.xiaonuo.common.pojo.CommonEntity;

import java.io.Serializable;

/**
 * <p>
 * 客户
 * </p>
 *
 * @author xhs
 * @since 2025-06-04
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "pm_enterprise", autoResultMap = true)
public class PmEnterpriseEntity extends CommonEntity implements Serializable, TransPojo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 企业名称
     */
    @TableField("ENTERPRISE_NAME")
    private String enterpriseName;

    /**
     * 企业代码
     */
    @TableField("ENTERPRISE_CODE")
    private String enterpriseCode;

    /**
     * 企业账套
     */
    @TableField("ENTERPRISE_ACCOUNT")
    private String enterpriseAccount;

    /**
     * 企业地址
     */
    @TableField("ADDRESS")
    private String address;

    /**
     * 企业联系电话
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 企业税号
     */
    @TableField("TAX_ID")
    private String taxId;

    /**
     * 企业类型(01:客户;02:供应商;03:合同发起方)
     */
    @Trans(type = TransType.DICTIONARY,key = "ENTERPRISE_TYPE")
    @TableField("ENTERPRISE_TYPE")
    private String enterpriseType;

    /**
     * 供应商准入状态(合格;不合格)
     */
    @TableField("ENTERPRISE_STATUS")
    @Trans(type = TransType.DICTIONARY,key = "ENTERPRISE_STATUS")
    private String enterpriseStatus;

    /**
     * 排序
     */
    @TableField("SORT_CODE")
    private Integer sortCode;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 扩展信息
     */
    @TableField("EXT_JSON")
    private String extJson;

}
